package com.mdinic.blogovi.service.model;

import java.io.Serializable;

import com.mdinic.blogovi.model.Person;

public class LoginResult implements Serializable {

    private static final long serialVersionUID = 1L;

    private Person person;
    private LoginResultType type = LoginResultType.FAIL;

    public LoginResult() {
        super();
    }

    public LoginResult(Person person, LoginResultType type) {
        super();
        this.person = person;
        this.type = type;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public LoginResultType getType() {
        return type;
    }

    public void setType(LoginResultType type) {
        this.type = type;
    }

}
